Virtual reality based cognitive training